function setMark(url) {
  const icon = new ol.style.Style({
    /**{olx.style.IconOptions}类型*/
    image: new ol.style.Icon({
      anchor: [0.5, 200],
      anchorOrigin: "top-right",
      anchorXUnits: "fraction",
      anchorYUnits: "pixels",
      offsetOrigin: "top-right",
      // offset:[0,120],
      //图标缩放比例
      scale: 0.2,
      //透明度
      opacity:1,
      //图标的url
      src: url,
    }),
  })
  return icon
}
export {setMark}
